//
// Created by fred on 2020/4/15.
//
#include <string>
extern "C"{
#include "aes/aes.h"
}

#ifndef CRYPTO_NATIVE_LIB_H
#define CRYPTO_NATIVE_LIB_H

const std::string AES_KEY_START = "0C1y602j3D061Oeh1Y7i0Ldb3C103c7p";
const std::string RSA_PUBLIC_KEY_START = "UM1IyGyffMBA70DGgCJShqiGkSPI7b13";
const std::string RSA_PRIVATE_KEY_START = "NMOI/IbCDdlQBIkBfAeDpAqNLBSgPkWq";
const std::string DES_KEY_START = "0YqtGXO6953DMYF0Pa8sDfCiOqdprU7a";
const std::string AES_DID_KEY_START = "wY9tGX5sd9w3D5F0Pa8WrOedprfghU7a";
const std::string RSA_PUBLIC_KEY_SURPLUS = "iQKBgQCZtiijnvRo5EEI0n2I7shxljMXb7mZ/FpjuS98MHGWuYYUrsiJQVgfPn29lmI/MDkhVc7oVTsg5BIyC0TUpZKTgxyFDZw08AdWKe9JZvzyGB00AGkRxcem2J64xJJ04o9FW6PDLF0gSvblZAvUdHU1YyfB7DgJhikP7lPrFNdGwwIDAQAB";
const std::string RSA_PRIVATE_KEY_SURPLUS = "Al8wggJbAgEAAoGBAMBZug0p9CRIsZI+o3rMj1dlKt7AE52Ql44dSgVvaTVZ3ZWB2vRpvA80cF/QQXVbODgaU3xD0ZTkeGY6EP3lQaxLwGbQC1xrfLl4rVJPBt2qk0EtSQt729rOYBzMJSp0r5fPMmVDPogp3neMlFhP2xFlkp+yy+hsbkvXmsT9kpZjAgMBAAECgYAy0cIBJlt1lqsrq1b/47nfakA4V+EW2RPhnUVoSDYwvUx46rURrDnefolOFzSkL/SbhgEWrMhboT1aLO8+VWrTCF3BL2BPK0+G0QGYh8l56qk0dyoJiAz6Qus4OSlypNO01VIZGhNfayYlPjVlrZtDRTZF1kPbnUjcUwEKsrHXcQJBAOZbj4zopmYTfB7xFsbyP/K7nMOREjANLilie1Fkl8RZ8xSRwdz6s7r1Vx3JuUZbwyyNMG27NO+tZgdvF0u3pskCQQDVwxYUyuF+iIH9Ia2qQ1c1Al5fIBBUY8o7BT4tviLpQEjL2lZeJBvlRRzCyiZZISR+KXq8Id4+OKVpix6FoC3LAkB9z0niannezAuBFqka9NmKJ38hrEyjo78vaRLyzB67ZWkGNekMWHvqwu3WXgLrc1hwL5hghdsOf8R2kOzHNMFJAkA7xh+olMrVbSqcNAyx7b63DgCBrR+j2Xu1YVPvyplMjDNO/bDlBkfepqLSPWDXz5K6zLKLZRUWZRSsHMDeMNpdAkB1CAvpgzVt/OYbGvUDDK9VFbKtprN0hyFxuaX/pYaQL8hz7l+wkSvAd6lQgNlW5qLfYog06XUexrOFRvMjIhMm";

void throwException(JNIEnv *env,const char* errorInfo);
int setAesKey(JNIEnv *env, AES_KEY *st, const int enc,jobject context);
void throwException(JNIEnv *env,const char* errorInfo);

#endif //CRYPTO_NATIVE_LIB_H